﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BugTracker.WebUX.WebCode
{
    public class BTBaseSecurePage : BTBasePage
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!BTSecurity.IsAuthenticated() && 
                !BTSecurity.IsInRole("administrator") | BTSecurity.IsInRole("workspace"))
            {
                Response.Redirect(BTHttpApplication.AppPaths.Login);
            }
        }
    }
}